package com.gourd.common.dic.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 数据字典明细表实体类
 *
 *
 * @author gourd
 * @since 2019-07-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_dic")
public class Dic extends Model<Dic> {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 类型
     */
    private String type;

    /**
     * 代码
     */
    private String code;

    @TableField("code_text")
    private String codeText;

    @TableField("parent_type")
    private String parentType;

    @TableField("parent_code")
    private String parentCode;

    @TableField("sort_no")
    private Integer sortNo;

    private Boolean editable;

    private Boolean enable;

    private String remark;

    @TableField("created_by")
    private Long createdBy;

    @TableField("created_time")
    private Date createdTime;

    @TableField("updated_by")
    private Long updatedBy;

    @TableField("updated_time")
    private Date updatedTime;


    @Override
    protected Serializable pkVal() {
        return null;
    }

}
